package com.spring02.demo.testenum;

public class SeasonTwo {
    public static final SeasonTwo SPRING = new SeasonTwo("春天", "温暖");
    public static final SeasonTwo SUMMER = new SeasonTwo("夏天", "炎热");
    public static final SeasonTwo AUTUMN = new SeasonTwo("秋天", "凉爽");
    public static final SeasonTwo WINTER = new SeasonTwo("冬天", "寒冷");
    private final String description;
    private final String feature;
    private SeasonTwo(String feature, String description) {
        this.feature = feature;
        this.description = description;
    }
    public String getDescription() {
        return description;
    }
    public String getFeature(){
        return feature;
    }
    public String adjustTemperature(String temp) {
        if (this == WINTER) {
            return "寒冷的" + temp;
        } else if (this == SUMMER) {
            return "炎热的" + temp;
        }
        return temp; // 其他季节保持原样
    }
}
